<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__ADMIN__/css/font.css">
<link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
<script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/layui/layui.js?t=1.1" charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
<script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
<link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/font-awesome.min.css">
<style>
.layui-form-item .layui-form-label{
    width: 120px;
}
.layui-form-item .layui-textarea{
    width: 190px;
}
#phone-one-div {display: none}
.required{background:#F6CECE !important}
.unrequired{background:#eee}
#page-2 , #page-3 , #page-4{display:none}
td{font-family: "Microsoft YaHei"!important;color:#000 !important}
.layui-rate{padding:0}
.layui-table td{padding:4px 10px}
</style>
</head>
  
<body>
<div class="x-body">
    {if condition="!$pageListN"}
    <blockquote class="layui-elem-quote layui-quote-nm" style="font-size:19px">
      你已成功提交运营考核打分，谢谢配合！
    </blockquote>
    {else}
    {foreach name="pageListN" item="v"}
    <form class="layui-form" style="float:left;margin-right:20px;">
    <input type="hidden" id="operator_id" name="operator_id" value="{$key}">
    <input type="hidden" id="check_id" name="check_id" value="{$info.id}">
    
    <table class="layui-table" style="width:845px">
        <tr>
            <td colspan="4" align="center" style="font-weight:bold;font-size:17px">{$info.title} - 运营岗位考核表 - {$v.name}</td>
        </tr>
        <tr>
            <td colspan="4">
                
                参与考核的活动页面：
                <div style="width:98%">
                    {foreach name="v.list" item="vv" key="kk"}
                    <div style="width:49%;float:left;">【{$vv.activity_name}】</div>
                    {/foreach}
                </div>
            </td>
        </tr>
        <tr>
            <td width="75">项目</td>
            <td width="50">权重</td>
            <td width="">运营岗考核内容</td>
            <td width="175">考核得分</td>
        </tr>
        <tr>
            <td rowspan="3" >效率</td>
            <td>10</td>
            <td>1、在约定时间内完成了页面制作。</td>
            <td><div id="score_1_{$key}"></div><input type="hidden" value="0" name="score_1" id="score_1_{$key}_input"></td>
        </tr>
        <tr>
            <td>5</td>
            <td>2、未能完成页面时，是否与你协调好完成时间。</td>
            <td><div id="score_2_{$key}"></div><input type="hidden" value="0" name="score_2" id="score_2_{$key}_input"></td>
        </tr>
        <tr>
            <td>10</td>
            <td>3、因临时增加了页面或时间紧急等特殊情况下，是否在约定时间积极配合完成了页面制作。</td>
            <td><div id="score_3_{$key}"></div><input type="hidden" value="0" name="score_3" id="score_3_{$key}_input"></td>
        </tr>
        <tr>
            <td rowspan="2">效果</td>
            <td>10</td>
            <td>1、你对运营人员的页面制作效果是否满意。</td>
            <td><div id="score_4_{$key}"></div><input type="hidden" value="0" name="score_4" id="score_4_{$key}_input"></td>
        </tr>
        <tr>
            <td>10</td>
            <td>2、客户对我们的页面制作效果是否满意。</td>
            <td><div id="score_5_{$key}"></div><input type="hidden" value="0" name="score_5" id="score_5_{$key}_input"></td>
        </tr>
        <tr>
            <td rowspan="3" >态度</td>
            <td>5</td>
            <td>1、运营人员制作、修改页面是否做到了有始有终。</td>
            <td><div id="score_6_{$key}"></div><input type="hidden" value="0" name="score_6" id="score_6_{$key}_input"></td>
        </tr>
        <tr>
            <td>10</td>
            <td>2、运营人员在制作、修改页面时是否做到了耐心、不暴躁、不发脾气。</td>
            <td><div id="score_7_{$key}"></div><input type="hidden" value="0" name="score_7" id="score_7_{$key}_input"></td>
        </tr>
        <tr>
            <td>5</td>
            <td>3、运营人员在页面搭建前是否进行了风格、要求等有效沟通。</td>
            <td><div id="score_8_{$key}"></div><input type="hidden" value="0" name="score_8" id="score_8_{$key}_input"></td>
        </tr>
        <tr>
            <td rowspan="2" >配合</td>
            <td>10</td>
            <td>1、运营人员是否积极参与配合和客户之间的对接事宜。</td>
            <td><div id="score_9_{$key}"></div><input type="hidden" value="0" name="score_9" id="score_9_{$key}_input"></td>
        </tr>
        <tr>
            <td>10</td>
            <td>2、运营人员是否按时完成了每天今日之星制作。</td>
            <td><div id="score_10_{$key}"></div><input type="hidden" value="0" name="score_10" id="score_10_{$key}_input"></td>
        </tr>
        <tr>
            <td rowspan="1" >参与排班</td>
            <td>15</td>
            <td>万达和新下陆运营共同参与排班，由各部门负责人联系。<br>（排班指的是节假日期间轮流排班，排班可协调)。</td>
            <td><div id="score_11_{$key}"></div><input type="hidden" value="0" name="score_11" id="score_11_{$key}_input"></td>
        </tr>
        <tr>
            <td rowspan="3" >其它</td>
            <td rowspan="3" >此项目为否决项，出现即为0分</td>
            <td>1、未按时完成公司交代任务。</td>
            <td align="center"><input type="checkbox" name="veto_1" lay-skin="primary" value="1" title="有"></td>
        </tr>
        <tr>
            <td>2、因运营个人原因而导致黄单。</td>
            <td align="center"><input type="checkbox" name="veto_2" lay-skin="primary" value="1" title="有"></td>
        </tr>
        <tr>
            <td>3、不完成页面，故意刁难、拖延等。</td>
            <td align="center"><input type="checkbox" name="veto_3" lay-skin="primary" value="1" title="有"></td>
        </tr>
        <tr>
            <td rowspan="1"  colspan="2" >合计</td>
            <td></td>
            <td><input type="text" name="score_total" id="score_total_{$key}" class="layui-input" value="0" readonly></td>
        </tr>
        <tr>
            <td rowspan="1"  colspan="2">对运营工作提出建议：</td>
            <td  colspan="2"><textarea placeholder="请输入" name="remark" class="layui-textarea" style="height:60px"></textarea></td>
        </tr>
        <tr>
            <td  colspan="4" align="center">
                <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">提交</button>
                
            </td>
        </tr>
    </table>
    
    
    </form>
    {/foreach}
    
    {/if}
</div>
<script>
layui.use(['form','layer','laydate','rate'], function(){
    $ = layui.jquery;
    var form = layui.form
    ,layer = layui.layer
    ,laydate = layui.laydate
    ,rate = layui.rate;
    
    {foreach name="pageListN" item="v"}
        {foreach name="score_1" id="s" key="kk"}
        rate.render({
            elem: '#score_{$s}_{$key}'
            ,choose: function(value){
                $('#score_{$s}_{$key}_input').val(value)
            }
            ,half: true
            ,value: 0
            ,text: true
            ,setText: function(value){
                this.span.text(value+'分');
                update_score({$key});
            }
        })
        {/foreach}
        {foreach name="score_2" id="s" key="kk"}
        rate.render({
            elem: '#score_{$s}_{$key}'
            ,choose: function(value){
              if(value > 0) 
                $('#score_{$s}_{$key}_input').val(value*2)
            }
            ,half: true
            ,value: 0
            ,text: true
            ,setText: function(value){
                this.span.text(value*2+'分');
                update_score({$key});
            }
        })
        {/foreach}
        {foreach name="score_3" id="s" key="kk"}
        rate.render({
            elem: '#score_{$s}_{$key}'
            ,choose: function(value){
                $('#score_{$s}_{$key}_input').val(value*3)
            }
            ,half: true
            ,value: 0
            ,text: true
            ,setText: function(value){
                this.span.text(value*3+'分');
                update_score({$key});
            }
        })
        {/foreach}
    {/foreach}
    
    function update_score(id)
    {
        var total = 0;
        for(i=1;i<12;i++){
            v = $('#score_'+i+'_'+id+'_input').val()-1+1;
            total += v;
        }
        $('#score_total_'+id).val(total);
    }
    
    form.on('submit(save)', function(data){
        layer.confirm('是否确认要提交考核表？', {
            btn: ['确定','取消']
        }, function(){
            $.ajax({
                type:'POST',
                dataType:'json',
                data:data.field,
                success:function(obj){
                    layer.alert(obj.msg, {icon: obj.icon},function(){
                        // var index = parent.layer.getFrameIndex(window.name);
                        // parent.layer.close(index);
                        // x_admin_father_reload();
                        window.location.reload();
                    });    
                }
            });
        }, function(){
            
        });
        

        return false;
    });
});
</script>
</body>

</html>
            
            
            